/*
 * Created on 2006-6-1 5:54:51
 */
package cn.com.sbell.vss.csg.vap;

import org.dom4j.Element;

import cn.com.sbell.vss.csg.vap.bean.DeviceInfo;
import cn.com.sbell.vss.csg.vsclient.VsClient;
import cn.com.sbell.vss.csg.vsclient.util.PropertiesHolder;

/**
 * @author liang.a.chen
 */
public class RequestVsDeviceInfo extends ProtectedVsCommander {

	protected Element executeCommand(VsClient vsClient, PropertiesHolder holder, Element root) {
		DeviceInfo info = vsClient.requestVsDeviceInfo();
		root.addElement("softWareVersion").addText(toString(info.getSoftWareVersion()));
		root.addElement("modelName").addText(toString(info.getModelName()));
		return root;
	}
}
